home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / elk-2_0.lha / elk-2.0 / lib / xm / xt / build next >
Encoding:
Text File  |  1992-11-02  |  1.2 KB  |  67 lines

  1. . ../../../config/system
  2. . ../../../config/site
  3.  
  4. echo Building Makefile.local...
  5. cat <<EOT >Makefile.local
  6. # This Makefile was produced by running ./build in this directory.
  7.  
  8. SHELL=/bin/sh
  9.  
  10. CC= ${cc-cc}
  11. CFLAGS= $cflags $obj_cflags
  12. LINTFLAGS= $lintflags
  13.  
  14. XTDIR=    ../../xt
  15.  
  16. O=    \$(XTDIR)/accelerator.o\\
  17.     \$(XTDIR)/action.o\\
  18.     \$(XTDIR)/callback.o\\
  19.     \$(XTDIR)/class.o\\
  20.     \$(XTDIR)/context.o\\
  21.     \$(XTDIR)/converter.o\\
  22.     \$(XTDIR)/error.o\\
  23.     \$(XTDIR)/function.o\\
  24.     \$(XTDIR)/identifier.o\\
  25.     \$(XTDIR)/init.o\\
  26.     \$(XTDIR)/objects.o\\
  27.     \$(XTDIR)/popup.o\\
  28.     \$(XTDIR)/resource.o\\
  29.     \$(XTDIR)/translation.o\\
  30.     \$(XTDIR)/widget.o
  31.  
  32. .c.o:
  33.     @echo ""
  34.     @echo === Must make files in \$(XTDIR) first\! ===
  35.     @echo ""
  36.  
  37. EOT
  38. if [ _$load_obj != _ ]; then
  39. cat <<EOT >>Makefile.local
  40. xt-motif.pre: \$(O) ../../xlib/xlib.pre
  41.     ../../../scripts/linkext.$load_obj \$@ \$(O) -u _XmIsMotifWMRunning\\
  42.         $libmotif $libxt ../../xlib/xlib.pre $libxlib
  43.     chmod 644 \$@
  44.  
  45. install: xt-motif.pre
  46.     -@if [ ! -d $lib_dir ]; then \\
  47.         echo mkdir $lib_dir; \\
  48.         mkdir $lib_dir; \\
  49.     fi
  50.     cp xt-motif.pre $lib_dir/xt-motif.o
  51. EOT
  52. else
  53. cat <<EOT >>Makefile.local
  54. install:
  55. EOT
  56. fi
  57. cat <<EOT >>Makefile.local
  58.  
  59. lint:
  60.  
  61. clean:
  62.     rm -f *.o xt-motif.pre core
  63.  
  64. distclean:
  65.     rm -f *.o xt-motif.pre core Makefile.local
  66. EOT
  67.